<%= form_with(model: jobnumber, local: true) do |form| %>
  <% if jobnumber.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(jobnumber.errors.count, "error") %> prohibited this jobnumber from being saved:</h2>

      <ul>
      <% jobnumber.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= form.label :name %>
    <%= form.text_field :name %>
  </div>

  <div class="actions">
    <%= form.submit %>
  </div>
<% end %>
